import config from '@/config'
import request from '@/utils/request'

// 登录
export function login(params: Record<string, any>) {
  return request.post('/apis-admin/login', { ...params, terminal: config.terminal })
}
// 退出登录
export function logout() {
  return request.get('/apis-admin/logout')
}

// 修改头像
export function userProfileAvatar(params: Record<string, any>) {
  return request.post('/apis-admin/system/user/profile/avatar', params)
}
